import request from '@/utils/request.js'

export const searchRoom = (searchParams) => {
    return request({
        url: '/dorm',
        method: 'post',
        data: searchParams
    })
}

export const addRoom = (addParams) => {
    return request({
        url: '/dorm/add',
        method: 'post',
        data: addParams
    })
}

export const updateRoom = (updateParams) => {
    return request({
        url: '/dorm/update',
        method: 'post',
        data: updateParams
    })
}

export const deleteRoom = (deleteParams) => {
    return request({
        url: '/dorm/delete',
        method: 'post',
        data: deleteParams
    })
}
